package com.cjh.pojo;



import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author cjh
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Emp implements Serializable {

    private static final long serialVersionUID = -7119077484672114127L;
    @TableId(type = IdType.AUTO)
    private Integer empId;

    private String empName;

    private Character gender;

    private String email;

    private Integer deptId;

    @TableLogic
    private Integer deleted;

    @TableField(exist = false)
    private Dept dept;

    public static final String EMP_ID="emp_id";
    public static final String EMP_NAME="emp_name";
    public static final String GENDER="gender";
    public static final String EMAIL="email";
    public static final String DEPT_ID="dept_id";

    public Emp(Integer empId, String empName, Character gender, String email) {
        this.empId = empId;
        this.empName = empName;
        this.gender = gender;
        this.email = email;
    }
}
